package com.demo.starter.repository;

import com.demo.starter.entity.EstNews;
import com.demo.starter.entity.EstNewsExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EstNewsMapper {
    long countByExample(EstNewsExample example);

    int deleteByExample(EstNewsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(EstNews record);

    int insertSelective(EstNews record);

    List<EstNews> selectByExampleWithBLOBs(EstNewsExample example);

    List<EstNews> selectByExample(EstNewsExample example);

    EstNews selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") EstNews record, @Param("example") EstNewsExample example);

    int updateByExampleWithBLOBs(@Param("record") EstNews record, @Param("example") EstNewsExample example);

    int updateByExample(@Param("record") EstNews record, @Param("example") EstNewsExample example);

    int updateByPrimaryKeySelective(EstNews record);

    int updateByPrimaryKeyWithBLOBs(EstNews record);

    int updateByPrimaryKey(EstNews record);
}